<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>笔记列表</title>
    <link crossorigin='anonymous' href="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
    <div class="container">
        <div class="col-xs-6 col-xs-offset-3">
            <h2 class="page-header">笔记列表</h2>
            <div class="list-group">
                <% for(let i=0;i<data.length;i++){ %>
                <li href="#" class="list-group-item">
                    <a href=""><%= data[i].title %></a>

                    <a href="/note/<%=data[i]._id%>/delete" class="glyphicon glyphicon-remove pull-right" aria-hidden="true"></a>
                    
                    <a href="/note/<%=data[i]._id%>/edit" class="glyphicon glyphicon-edit pull-right" style="margin-right: 5px;" aria-hidden="true"></a>
                </li>
                <% } %>
            </div>
        </div>
    </div>
</body>
</html>